package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 t_device
 *
 * @author ruoyi
 * @date 2025-03-06
 */
public class TDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceNumber;

    /** 设备状态 1 启用 0 未启用 */
    @Excel(name = "设备状态 1 启用 0 未启用")
    private String status;

    /** 上报周期 */
    @Excel(name = "上报周期")
    private String uploadInterval;

    /** 是否打开卫星定位 1打开 0 关闭 */
    @Excel(name = "是否打开卫星定位 1打开 0 关闭")
    private String enableSatelliteLocat;

    /** 是否打开扩展模块定位 1 打开 0 关闭 */
    @Excel(name = "是否打开扩展模块定位 1 打开 0 关闭")
    private String enableExtendLocat;

    /** 用户Id */
    @Excel(name = "用户Id")
    private Long userId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }

    public void setDeviceNumber(String deviceNumber)
    {
        this.deviceNumber = deviceNumber;
    }

    public String getDeviceNumber()
    {
        return deviceNumber;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setUploadInterval(String uploadInterval)
    {
        this.uploadInterval = uploadInterval;
    }

    public String getUploadInterval()
    {
        return uploadInterval;
    }

    public void setEnableSatelliteLocat(String enableSatelliteLocat)
    {
        this.enableSatelliteLocat = enableSatelliteLocat;
    }

    public String getEnableSatelliteLocat()
    {
        return enableSatelliteLocat;
    }

    public void setEnableExtendLocat(String enableExtendLocat)
    {
        this.enableExtendLocat = enableExtendLocat;
    }

    public String getEnableExtendLocat()
    {
        return enableExtendLocat;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceName", getDeviceName())
                .append("deviceNumber", getDeviceNumber())
                .append("status", getStatus())
                .append("uploadInterval", getUploadInterval())
                .append("enableSatelliteLocat", getEnableSatelliteLocat())
                .append("enableExtendLocat", getEnableExtendLocat())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .toString();
    }
}